﻿// Phone.cs
namespace CSharpPro._0916;

public class Phone
{
    private string brand;
    private int weight;      
    private int camera;      
    private int price;       

    public Phone(string brand, int weight, int camera, int price)
    {
        this.brand = brand;
        this.weight = weight;
        this.camera = camera;
        this.price = price;
    }

    public void Show()
    {
        Console.WriteLine($"品牌(brand)：{brand}");
        Console.WriteLine($"重量(weight)：{weight}g");
        Console.WriteLine($"后置摄像头像素(camera)：{camera}");
        Console.WriteLine($"价格(price)：{price}");
    }
}
